import request from '@/utils/request'

// 查询测试记录列表
export function listMhTests(query) {
  return request({
    url: '/mh-test/MhTests/list',
    method: 'get',
    params: query
  })
}

// 查询测试记录详细
export function getMhTests(id) {
  return request({
    url: '/mh-test/MhTests/' + id,
    method: 'get'
  })
}

// 新增测试记录
export function addMhTests(data) {
  return request({
    url: '/mh-test/MhTests',
    method: 'post',
    data: data
  })
}

// 修改测试记录
export function updateMhTests(data) {
  return request({
    url: '/mh-test/MhTests',
    method: 'put',
    data: data
  })
}

// 删除测试记录
export function delMhTests(id) {
  return request({
    url: '/mh-test/MhTests/' + id,
    method: 'delete'
  })
}
